<h2>Welcome back, <%= @user.nickname %>!</h2>
<ul>
  <li><%= link_to 'Edit profile', :controller => "home", :action => "edit" %></li>
</ul>

<h3>My friends</h3>
<% for relationship in @relationship %>
  <% if relationship.relation_id == session[:uid] %><%=h relationship.user_id %>
  <% else %><%=h relationship.relation_id %><% end %>
<% end %>
